package com.java.frontweb.thred;

import com.java.frontweb.pojo.User;

/**
 * @ClassName UserThreadLocal
 * @Description 用户信息线程
 * @Author Trigger Wu
 * @Date 2018/9/259:31
 * @Version 1.0
 **/

public class UserThreadLocal {
    private  static final ThreadLocal<User> LOCAL = new ThreadLocal<>();

    public static  void set(User user){
        LOCAL.set(user);
    }
    public  static User get(){
        return LOCAL.get();
    }
}
